Skip to content

Ensure zeronull int types implement Int64Scanner#2367

Merged
jackc merged 2 commits into
jackc:masterfrom
zeghong:zeronull-int-scanner
Aug 30, 2025
Merged

Ensure zeronull int types implement Int64Scanner#2367
jackc merged 2 commits into
jackc:masterfrom
zeghong:zeronull-int-scanner

Conversation

@zeghong

@zeghong zeghong commented Aug 15, 2025

Copy link
Copy Markdown
Contributor

Currently the Int2/Int4/Int8 type in zeronull package does not implement pgtype.Int64Scanner interface correctly.

This PR fixes the implementations but does not change the scanning behavior, since the sql.Scanner implementations are already in place.

Also correct error string when comparing minimum value.

@jackc jackc merged commit 594d9d6 into jackc:master Aug 30, 2025
14 checks passed
@jackc

jackc commented Aug 30, 2025

Copy link
Copy Markdown
Owner

LGTM

@zeghong zeghong deleted the zeronull-int-scanner branch September 3, 2025 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants